package com.bw.module_mine.login.http

import com.bw.lib_net.http.BaseResponse
import com.bw.module_mine.login.model.LoginEntity
import com.bw.module_mine.login.model.RegisterEntity
import retrofit2.http.POST
import retrofit2.http.Query

interface UserApi {
    @POST("/api/user/login")
    suspend fun login(@Query("password")password:String,@Query("username")username:String):BaseResponse<LoginEntity>

    @POST("/api/user/register")
    suspend fun register(@Query("password")password:String,@Query("username")username:String):BaseResponse<RegisterEntity>

}